<template>
    <div class="template-form-Lu">
        <a-modal
            title=""
            :visible="applicationFormVisible"
            :maskClosable="false"
            :closable="true"
            :destroyOnClose="true"
            width="100%"
            :dialog-style="{ margin: '0 auto' }"
            wrapClassName="form-modal-Lu"
            @cancel="closeVisible">
            <template slot="footer">
                <a-button v-if="showFooter == false" key="back" @click="saveTable('保存')">
                    保存
                </a-button>
                <a-button :loading="loading" v-if="showFooter == false" class="blue-btn" @click="subTable('提交')">
                    提交
                </a-button>
                <a-button v-if="showFooter == false && linkName !=='申请'" class="red-btn" @click="returnClick">
                    退回
                </a-button>
                <a-button v-if="showFooter" @click="closeVisible">关闭</a-button>
                <a-button v-if="linkName == '数据修订'" @click="editForm" class="blue-btn">确认修订</a-button>
                <a-button v-if="linkName == '中心分管领导审批'" @click="jobTable()" class="blue-btn">
                    跳过单位领导审批,直接发布
                </a-button>
            </template>
            <a-tabs type="card" v-if="applicationFormVisible" @change="callback">
                <a-tab-pane key="1" tab="申请表">
                  <div id="printTest" class="print-div-shu">
                    <a-form-model
                        ref="ruleForm"
                        :model="form"
                        :rules="rules"
                    >
                        <h1 class="h1-page">自治区食品药品审评查验中心<br/>网站信息发布审批表</h1>
                        <table border="1" cellspacing="0" class="table-Lu xcxx-table">
                            <tr v-if="linkName !== '申请'">
                                <th>拟稿科室</th>
                                <td colspan="2">
                                    {{ form.fngks }}
                                </td>
                                <th>拟稿人</th>
                                <td colspan="2">
                                    {{ form.fngr }}
                                </td>
                                </tr>
                            <tr>
                                <th>信息名称</th>
                                <td v-if="linkName == '申请' || linkName == '数据修订'" colspan="5">
                                    <a-form-model-item ref="fxxmc" prop="fxxmc">
                                        <a-input v-model="form.fxxmc" placeholder="请输入信息名称:" type="textarea" />
                                    </a-form-model-item>
                                </td>
                                <td v-else colspan="5">{{ form.fxxmc }}</td>
                            </tr>
                            <tr>
                                <th>发布栏目</th>
                                <td v-if="linkName == '申请' || linkName == '数据修订'" colspan="5">
                                    <a-form-model-item ref="ffblm" prop="ffblm">
                                        <a-input v-model="form.ffblm" placeholder="请输入发布栏目:" type="textarea" />
                                    </a-form-model-item>
                                </td>
                                <td v-else colspan="5">{{ form.ffblm }}</td>
                            </tr>
                            <tr v-if="linkName == '申请' || linkName == '数据修订'">
                                <th>上传附件</th>
                                <td colspan="5">
                                    <div>
                                        <a-form v-if="linkName == '申请' || linkName == '数据修订'" layout="inline" style="display: flex;justify-content: flex-start;">
                                            <a-form-item class="vxe-table-box-w" >
                                                <a-upload style="display: inline-block;" :beforeUpload="beforeUpload" action="" @change="uploadClick">
                                                    <a-button class="blue-btn" type="primary">上传文件</a-button>
                                                </a-upload>
                                            </a-form-item>
                                        </a-form>
                                        <a-list item-layout="horizontal" :data-source="filesListData">
                                            <a-list-item slot="renderItem" slot-scope="item, index">
                                                <a-list-item-meta>
                                                    <a @click="openFiles(item)" slot="title" href="#">{{ item.fmc }}</a>
                                                </a-list-item-meta>
                                                <a-button style="margin-right: 10px;" class="blue-btn" type="primary" @click="openFiles(item)" >预览</a-button>
                                                <a-button style="margin-right: 10px;" class="blue-btn" type="primary" @click="downloadFiles(item)" >下载文件</a-button>
                                                <a-button
                                                    v-if="linkName == '申请' || stepNums == 8"
                                                    class="red-btn"
                                                    type="primary"
                                                    style="margin-right: 10px;"
                                                    @click="deleteFiles(item.id)" >
                                                    删除文件
                                                </a-button>
                                            </a-list-item>
                                        </a-list>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <th>文本编辑</th>
                                <td v-if="linkName == '申请' || linkName == '数据修订'" colspan="5">
                                    <!-- <editor :key="editorKey" id="editor_id" ref="editor" height="500px" width="100%" :content.sync="editorText"
                                        :afterChange="afterChange()"
                                        :afterCreate="afterCreate ()"
                                        pluginsPath="../../../../assets/kindeditor/plugins/"
                                        :loadStyleMode="false"
                                        @on-content-change="onContentChange">
                                    </editor> -->
                                    <quill-editor v-model:value="form.flmnr"></quill-editor>
                                </td>
                                <td v-else colspan="5" class="editor_html">
                                    <div v-html="form.flmnr"></div>
                                </td>
                            </tr>
                            <tr>
                                <th>科室领导意见</th>
                                <td v-if="linkName == '科室审批' || linkName == '数据修订'" colspan="5">
                                    <a-form-model-item ref="fngksyj" prop="fngksyj">
                                        <reviewOpinions
                                          ref="reviewOpinionsRefKs"
                                          @getInputOpinion="getInputOpinion"
                                          @openOpinions="ksOpinions"
                                          v-decorator="[
                                                'fngksyj', {initialValue:form.fngksyj,rules: rules.fngksyj}]"/>
                                    </a-form-model-item>
                                    <div v-if="linkName == '数据修订'" class="yjqm-right-bottom">
                                        <a-input
                                            v-model="form.fksfzr"
                                            @click="checkMan('fksfzr',form.fksfzr)"
                                            placeholder=""
                                            class="checkMan-Xiu">
                                        </a-input>
                                        <a-date-picker
                                            show-time
                                            placeholder=""
                                            v-model="form.fksfzrsj"
                                            @change="timeChang($event,'fksfzrsj')"
                                            class="checkTime-Xiu"
                                            />
                                    </div>
                               </td>
                               <td v-else colspan="5">
                                <div>
                                    <p class="text-align-left">{{ form.fngksyj }}</p>
                                    <div class="yjqm-right-bottom">
                                        <img v-if="getUrl('科室审批') && form.fksfzrsj" :src="getUrl('科室审批')" class="yjqmImg"/>
                                        <span v-else class="yjqmImg">{{ form.fksfzr }}</span>
                                        <span>{{ form.fksfzrsj }}</span>
                                    </div>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <th>办公室审批</th>
                                <td v-if="linkName == '办公室审批' || linkName == '数据修订'" colspan="5">
                                    <a-form-model-item ref="fbgsyj" prop="fbgsyj">
                                        <reviewOpinions
                                          ref="reviewOpinionsRefBgs"
                                          @getInputOpinion="getInputOpinion"
                                          @openOpinions="bgsOpinions"
                                          v-decorator="[
                                                'fbgsyj', {initialValue:form.fbgsyj,rules: rules.fbgsyj}]"/>
                                    </a-form-model-item>
                                    <div v-if="linkName == '数据修订'" class="yjqm-right-bottom">
                                        <a-input
                                            v-model="form.fbgsfzr"
                                            @click="checkMan('fbgsfzr',form.fbgsfzr)"
                                            placeholder=""
                                            class="checkMan-Xiu">
                                        </a-input>
                                        <a-date-picker
                                            show-time
                                            placeholder=""
                                            v-model="form.fbgsfzrsj"
                                            @change="timeChang($event,'fbgsfzrsj')"
                                            class="checkTime-Xiu"
                                            />
                                    </div>
                               </td>
                               <td v-else colspan="5">
                                <div>
                                    <p class="text-align-left">{{ form.fbgsyj }}</p>
                                    <div class="yjqm-right-bottom">
                                        <img v-if="getUrl('办公室审批') && form.fbgsfzrsj" :src="getUrl('办公室审批')" class="yjqmImg"/>
                                        <span v-else class="yjqmImg">{{ form.fbgsfzr }}</span>
                                        <span>{{ form.fbgsfzrsj }}</span>
                                    </div>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <th>中心分管领导意见</th>
                                <td v-if="linkName == '中心分管领导审批' || linkName == '数据修订'" colspan="5">
                                    <a-form-model-item ref="fzxfgldspyj" prop="fzxfgldspyj">
                                        <reviewOpinions
                                          ref="reviewOpinionsRefFg"
                                          @getInputOpinion="getInputOpinion"
                                          @openOpinions="fgOpinions"
                                          v-decorator="[
                                            'fzxfgldspyj', {initialValue:form.fzxfgldspyj,rules: rules.fzxfgldspyj}]"/>
                                    </a-form-model-item>
                                    <div v-if="linkName == '数据修订'" class="yjqm-right-bottom">
                                        <a-input
                                            v-model="form.fzxfgldr"
                                            @click="checkMan('fzxfgldr',form.fzxfgldr)"
                                            placeholder=""
                                            class="checkMan-Xiu">
                                        </a-input>
                                        <a-date-picker
                                            show-time
                                            placeholder=""
                                            v-model="form.fzxfgldrsj"
                                            @change="timeChang($event,'fzxfgldrsj')"
                                            class="checkTime-Xiu"
                                            />
                                    </div>
                               </td>
                               <td v-else colspan="5">
                                <div>
                                    <p class="text-align-left">{{ form.fzxfgldspyj }}</p>
                                    <div class="yjqm-right-bottom">
                                        <img v-if="getUrl('中心分管领导审批') && form.fzxfgldrsj" :src="getUrl('中心分管领导审批')" class="yjqmImg"/>
                                        <span v-else class="yjqmImg">{{ form.fzxfgldr }}</span>
                                        <span>{{ form.fzxfgldrsj }}</span>
                                    </div>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <th>中心主任审批</th>
                                <td v-if="linkName == '中心主任审批' || linkName == '数据修订'" colspan="5">
                                    <a-form-model-item ref="fzxzrspyj" prop="fzxzrspyj">
                                        <reviewOpinions
                                          ref="reviewOpinionsRefZxld"
                                          @getInputOpinion="getInputOpinion"
                                          @openOpinions="zxldOpinions"
                                          v-decorator="[
                                            'fzxzrspyj', {initialValue:form.fzxzrspyj,rules: rules.fzxzrspyj}]"/>
                                    </a-form-model-item>
                                    <div v-if="linkName == '数据修订'" class="yjqm-right-bottom">
                                        <a-input
                                            v-model="form.fzxzrspr"
                                            @click="checkMan('fzxzrspr',form.fzxzrspr)"
                                            placeholder=""
                                            class="checkMan-Xiu">
                                        </a-input>
                                        <a-date-picker
                                            show-time
                                            placeholder="中心主任审批意见时间："
                                            v-model="form.fzxzrspsj"
                                            @change="timeChang($event,'fzxzrspsj')"
                                            class="checkTime-Xiu"
                                            />
                                    </div>
                               </td>
                               <td v-else colspan="5">
                                <div>
                                    <p class="text-align-left">{{ form.fzxzrspyj }}</p>
                                    <div class="yjqm-right-bottom">
                                        <img v-if="getUrl('中心主任审批') && form.fzxzrspsj" :src="getUrl('中心主任审批')" class="yjqmImg"/>
                                        <span v-else class="yjqmImg">{{ form.fzxzrspr }}</span>
                                        <span>{{ form.fzxzrspsj }}</span>
                                    </div>
                                    </div>
                                </td>
                            </tr>
                            <tr v-if="linkName !== '信息发布办理'">
                                <th>发布日期</th>
                                <td v-if="linkName == '数据修订'" colspan="2">
                                    <a-date-picker
                                        show-time
                                        v-model="form.ffbrq"
                                        placeholder="请选择发布日期"
                                    />
                                </td>
                                <td v-else colspan="2">{{ form.ffbrq }}</td>
                                <th>经办人签字</th>
                                <td v-if="linkName == '数据修订'" colspan="2"></td>
                                <td v-else colspan="2">{{ form.fjbrqz }}</td>
                            </tr>
                            <tr>
                                <th>备注</th>
                                <td v-if="linkName == '数据修订'|| linkName == '信息发布办理'" colspan="5">
                                    <a-input v-model="form.fbz" placeholder="请输入备注:" type="textarea" />
                                </td>
                                <td v-else colspan="5">
                                    <p class="text-align-left">{{ form.fbz }}</p>
                                </td>
                            </tr>
                        </table>
                    </a-form-model>
                  </div>
                </a-tab-pane>
                <a-tab-pane v-if="linkName == '我的已办'" key="2" tab="流转记录">
                    <a-table
                        :columns="lzColumns"
                        :data-source="lzList"
                        bordered
                        style="border-color: #d9d9d9;font-weight: 600;text-align: center;"
                        :customRow="customRow">
                    </a-table>
                </a-tab-pane>
                <a-tab-pane v-if="linkName !== '申请'" key="3" tab="表单附件">
                    <a-table
                        :columns="fjColumns"
                        :data-source="filesListData"
                        bordered
                        style="border-color: #d9d9d9;font-weight: 600;text-align: center;"
                        :customRow="customRow">
                        <span slot="operation_btn" slot-scope="text, record">
                        <a-button  class="blue-btn" type="primary" @click="openFiles(record)" style="margin-right: 10px;">查看</a-button>
                        <a-button  class="blue-btn" type="primary" @click="downloadFiles(record)">下载</a-button>
                        </span>
                    </a-table>
                </a-tab-pane>
                <a-button
                    v-if="showPrintBtn(linkName,form.flczt,tabsKey)"
                    slot="tabBarExtraContent"
                    type="primary"
                    v-print="printObj"
                    class="print-btn">
                    打印
                </a-button>
            </a-tabs>
        </a-modal>
        <personnelList ref="personnelListRef" :modaObj="modaObj" @checkPersonnel="checkPersonnel"></personnelList>
    </div>
</template>
<script>

import {initBzFlow,saveFlow,submitFlow,flowJkPage,downMyQm,edit,queryAllYbJob,
        returnUpperzdyFlowJob,queryJobByJobId,fjupload,fjedit,openFile,downLoadOa,
        fjlist,deleleMinioFile,fjAdd,} from './service/index'
import personnelList from '../../modal/personnelList'
// import VueKindEditor from '../../../../utils/kindeditor.js'
import moment from 'moment'
import YchConstant from '@/api/YchConstant'
export default {
  components: {
    personnelList
  },
  props:{
    formData:{
      type:[Array,Object],
      default: () => {},
      required:false
    },
    linkName:{
      type:String,
      default:'',
      required:false,
    },
    stepNum:{
      type:String,
      default:'',
      required:false,
    }
  },
  data() {
    return {
      rules:{
        fxxmc: [{
              required: true,
              message: '请输入信息名称',
              trigger: 'blur',
          }],
        ffblm: [{
            required: true,
            message: '请输入发布栏目',
            trigger: 'blur',
        }],
        fngksyj: [{
            required: true,
            message: '请输入科室领导意见',
            trigger: 'blur',
        }],
        fbgsyj: [{
            required: true,
            message: '请输入办公室意见',
            trigger: 'blur',
        }],
        fzxfgldspyj: [{
            required: true,
            message: '请输入分管领导审批意见',
            trigger: 'blur',
        }],
        fzxzrspyj: [{
            required: true,
            message: '请输入中心主任审批意见',
            trigger: 'blur',
        }],
      },
      moment:moment,
      loading: false,
      stepNums: 0,
      showFooter: false,
      applicationFormVisible: false,
      form: {
        fbgsfzr: "",
        fbgsfzrsj: "",
        fbgsyj: "",
        fbz: "",
        ffblm: "",
        flmnr: '',
        ffbrq: "",
        fjbrqz: "",
        fksfzr: "",
        fksfzrsj: "",
        flczt: "",
        fngks: "",
        fngksyj: "",
        fngr: "",
        fsffqlc: "",
        fsftgdwld: "",
        fuserid: "",
        fxxmc: "",
        fzxfgldr: "",
        fzxfgldrsj: "",
        fzxfgldspyj: "",
        fzxzrspr: "",
        fzxzrspsj: "",
        fzxzrspyj: "",
        id: "",
        oaid: '',
        fdbr: '',
        fdbrid: '',
      },
      kongForm: {},
      lzColumns: [
        {
          title: '环节名称',
          dataIndex: 'fhjmc',
          key: 'fhjmc',
          width: 150,
        },{
          title: '待办人',
          dataIndex: 'fdbr',
          key: 'fdbr',
          width: 100,
        },{
          title: '办理人',
          dataIndex: 'fblr',
          key: 'fblr',
          width: 100,
        },{
          title: '发送时间',
          dataIndex: 'ffssj',
          key: 'ffssj',
          width: 170,
        },{
          title: '办理时间',
          dataIndex: 'fblsj',
          key: 'fblsj',
          width: 170,
        },{
          title: '办理状态',
          dataIndex: 'fblzt',
          key: 'fblzt',
          width: 100,
        },{
          title: '办理类型',
          dataIndex: 'fbllx',
          key: 'fbllx',
          width: 300,
        },{
          title: '办理意见',
          dataIndex: 'fblyj',
          key: 'fblyj',
        },
      ],
      lzList: [],
      fjColumns: [
        {
          title: '文件名',
          dataIndex: 'fmc',
          key: 'fmc',
          align: 'center'
        },{
          title: '文件类型',
          dataIndex: 'fwjlx',
          key: 'fwjlx',
          align: 'center'
        },{
          title: '上传时间',
          dataIndex: 'fscsj',
          key: 'fscsj',
          align: 'center'
        },{
          title: '上传人',
          dataIndex: 'fscr',
          key: 'fscr',
          align: 'center'
        },{
          title: '操作',
          key: 'id',
          scopedSlots: { customRender: 'operation_btn' },
        },
      ],
      filesListData: [],
      imgList: [
        {fhjmc:'科室审批',url: ''},
        {fhjmc:'办公室审批',url: ''},
        {fhjmc:'中心分管领导审批',url: ''},
        {fhjmc:'中心主任审批',url: ''},
      ],
      tabsKey: '1',
      editorKey: '',
      printObj:{
        id:"printTest", //需要打印的id名称
        popTitle:"宣传信息审批表",//文档的名称
        // preview:true,//预览功能，不好用
        zIndex:'20002',
        beforeOpenCallback(vue){
            // //console.log('打印回调',vue)
        },
        openCallback (vue) {//打开之前
            // //console.log('打开之前',vue)
        },
        closeCallback (vue) {//关闭了打印工具
            // //console.log('关闭了打印工具')
        },
      },
      modaObj: {},
      returnList: [],
      returmCheck: '',
      returnYj: '',
      //----------
      editorText: '<span style="display:none;"></span>开始创作吧！', // 双向同步的变量
    }
  },
  created() {
    // this.kongForm = JSON.parse(JSON.stringify(this.form))
  },
  watch: {
    formData:{
        handler (newval, oldVal) {
          this.form = {...newval}
          //console.log('form0',this.form)
          this.editorText = this.form.flmnr
          this.stepNums = Number(this.stepNum)
          if(this.stepNums > 6 || this.linkName == '我的已办'){
            this.showFooter = true
          }
          //console.log( this.stepNums)
          this.filesListData = []
          if(this.form.ffbrq){
            let nian = this.form.ffbrq.substr(0,4)
            let yue = this.form.ffbrq.substr(5,2)
            let ri = this.form.ffbrq.substr(8,2)
            this.form.ffbrq = nian + '-' + yue + '-' + ri
          }
          //console.log('form1',this.form)
          let id = this.form.oaid
          flowJkPage({oaid:id}).then(res => {
            let arr1 = []
                 arr1 = res.result.records
            // var arr1 = [1, 2, 3, 4, 5, 6, 7];
            var arr2 = new Array();
            for (let i = arr1.length - 1; i >= 0; i--) {
              arr2.push(arr1[i]);
            }
            // //console.log('arr2',arr2)
            this.lzList = []
            arr1.forEach(item => {
              item = {
                ...item,
                key: item.jobid
              }
              this.lzList.push(item)
              this.imgList.forEach((items,a)=> {
                if(item.fdbrid){
                  if(items.fhjmc == item.fhjmc){
                    downMyQm({id:item.fdbrid}).then(resa => {
                      if(resa.code){
                        this.imgList[a].url = null
                      } else {
                        this.imgList[a].url = "data:image/png;base64," +
                        btoa( new Uint8Array(resa).reduce( (data, byte) => data + String.fromCharCode(byte), "" ))
                      }
                    })
                  }
                } else {}
              })
              //console.log('lzList',this.lzList)
            })
          })
          if(id){
            fjlist({foaid:id}).then(res => {
              this.filesListData = []
              this.filesListData = res.result.records
            })
          }
          if(this.linkName == '数据修订'){
            this.getqueryAllYbJob()
          }
        },
        deep: true
    },
    applicationFormVisible:{
        handler(newval,oldVal){
            if(newval == true){
                // var editor =KindEditor.create('#editor_id', {
                //     allowFileManager : true,
                //     allowImageUpload: true, //多图上传
                //     uploadJson :'<%=basePath%>fdirms/fileUpload',
                // });
                // editor.focus();
                var editor = document.getElementById('editor_id')
                //console.log(editor)
                // editor.fullscreen();
            }
        }
    }
  },
  mounted(){
    this.kongForm = JSON.parse(JSON.stringify(this.form))
  },
  methods: {
    showPrintBtn(linkName,flczt,tabsKey){
            if(linkName == '我的已办' && flczt == '流程结束' && tabsKey == '1'){
                return true
            } else {
                return false
            }
        },
    getkind(){
      this.$nextTick(()=>{
        // var editor = KindEditor.create('#editor_id');  // 创建编辑器实例
        // editor.focus();  // 设置焦点到编辑器
        // KindEditor.create('#editor_id', {
        //   afterCreate: function() {
        //     this.focus();  // 设置焦点到编辑器
        //   }
        // });
        // editor.remove().create();
        // this.onContentChange(this.editorText)
        // this.editorText = '<span style="display:none;"></span>开始创作吧！'
      })
      // KindEditor.ready(function(editor_id) {
      //   editor_id.create("#editor",{
      //   // 配置参数
      //   })
      // })
      // document.getElementById('editor_id').$off('focusin.modal');
      //显示modal
      // document.getElementById('editor_id').modal('show');
      // //show完毕前执行
      // document.getElementById('editor_id').on('shown', function () {
      //   //加上下面这句！解决了~
      //   document.getElementById('editor_id').off('focusin.modal');
      //   // 打开Dialog后创建编辑器
      //   KindEditor.create('#editor_id', {
      //     resizeType : 1
      //   });
      // })
      //console.log('wwwww111')
    },
    onContentChange (val) {
      this.form.flmnr = val
      //console.log(val)
      //console.log('变变变')
    },
    afterCreate (){
      //console.log('afterCreate ')
    },
    afterChange () {
      //console.log('afterChange')
    },
    callback(key) {
      // //console.log(key);
      this.tabsKey = key
    },
    timeChang(val,name){
      let data = this.form
      if(name == 'ffbrq'){
        data[name] = moment(val).format('YYYY-MM-DD')
      } else {
        data[name] = moment(val).format('YYYY-MM-DD HH:mm:ss')
      }
    },
    reviewRecordsFocusEvent(){},
    // 是否只读
    readOnly(type){
      if(this.linkName ==  type){
        return false
      } else {
        return true
      }
    },
    // 右上角关闭后的回调
    closeVisible(){
      this.$emit('success')
      this.applicationFormVisible = false
      this.form = {...this.kongForm}
      this.filesListData = []
      //console.log('关闭后',this.form)
    },
    // 打开意见弹窗
    ksOpinions(){
        this.$refs.reviewOpinionsRefKs.getData({opinionType:'ksIdeaType',oldVal:this.form.fngksyj,valueData:{hjmc:'fngksyj'}})
    },
    bgsOpinions(){
        this.$refs.reviewOpinionsRefBgs.getData({opinionType:'bgsIdeaType',oldVal:this.form.fbgsyj,valueData:{hjmc:'fbgsyj'}})
    },
    fgOpinions(){
        this.$refs.reviewOpinionsRefFg.getData({opinionType:'fgIdeaType',oldVal:this.form.fzxfgldspyj,valueData:{hjmc:'fzxfgldspyj'}})
    },
    zxldOpinions(){
        this.$refs.reviewOpinionsRefZxld.getData({opinionType:'zxldIdeaType',oldVal:this.form.fzxzrspyj,valueData:{hjmc:'fzxzrspyj'}})
    },
    // 意见弹窗
    getInputOpinion(val,valueData){
      let data = this.form
      data[valueData.hjmc] = val
    },
    customRow() {
      return {
        style: {
            'font-size' : '16px',
            'text-align' : 'center'
        },
      }
    },
    getUrl(ids){
      let url = ''
      this.imgList.forEach(item => {
        if(item.fhjmc == ids){
          url = item.url
        }
      })
      // //console.log('长度',url.length)
      return url
    },
    // 附件
    beforeUpload(e){
      return false
    },
    // 上传附件
    async uploadClick({file}){
      //console.log(file)
      if(!this.form.id){
        let data = []
          data = {
            id: this.form.id,
            fngks: this.form.fngks,
            fngr: this.form.fngr,
            fxxmc: this.form.fxxmc,
            ffblm: this.form.ffblm,
            flmnr: this.form.flmnr,
            fsffqlc: '否'
          }
        // const res = await fjAdd(data)
        const res = await initBzFlow(data)
        this.form = res.result.oaMap
        this.form.id = res.result.oaMap.id
        this.form.jobid = res.result.jobMap.id
        if (res.success) {
          this.uploadClicka(file,this.form.id)
        }
      } else {
        this.uploadClicka(file,this.form.id)
      }
    },
    uploadClicka(file,id){
      //console.log(file)
      var that = this
        if(typeof file.uid !== 'undefined') {
          const fileData = new FormData();
          fileData.append("file",file);
          fileData.append("oaid",id);
          //console.log(fileData)
          fjupload(fileData).then(res => {
            //console.log('fileData',res)
            if (res.success) {
              that.$message.success(res.message)
              fjlist({foaid:id}).then(res => {
                that.filesListData = []
                that.filesListData = res.result.records
              })
            } else {
              that.$message.warning(res.message)
            }
          })
        }
    },
    // 预览
    openFiles(item){
      if(item.fwjlx.indexOf('pdf') !== -1){
              //console.log()
              window.open(
                  bootConfig[process.env.NODE_ENV].locality_ApI2+YchConstant.SPZX_OA+'/oaFjzyk/downLoadOa?id='+item.id
              )
            } else {
              openFile({id:item.id}).then(res => {
                if(!res.success){
                      this.$message.warning('当前附件类型不支持预览,请下载查看')
                } else {
                    window.open(res.result.wordUrl, '_blank')
                }
              })
            }
    },
    // 下载附件
    downloadFiles(val){
      //console.log('下载',val)
      var that = this
      var fileName = val.fmc
      downLoadOa({id:val.id}).then((data) => {
        // //console.log(data)
          if (!data) {
              that.$message.warning('文件下载失败')
              return
          }
          let url = window.URL.createObjectURL(new Blob([data], { type: blobType.type[blobType.suffix.indexOf(val.fwjlx)] }))
          let link = document.createElement('a')
          link.style.display = 'none'
          link.href = url
          link.setAttribute('download', fileName)
          document.body.appendChild(link)
          link.click()
          document.body.removeChild(link) //下载完成移除元素
          window.URL.revokeObjectURL(url) //释放掉blob对象
          // this.vxModal.visabled = false;
      })
    },
    // 删除附件
    deleteFiles(idd){
        //console.log('idd',idd)
        deleleMinioFile({id:idd}).then(res => {
        if(res.code == 200){
          this.$message.success('删除成功')
          fjlist({foaid:this.form.id}).then(res => {
            this.filesListData = []
            this.filesListData = res.result.records
          })
        } else {
          this.$message.warning(res.message)
        }
      })
    },
    //
    saveTable(str){
      let data = {}
      if(this.linkName == '申请'){
        if(this.form.id){
          if(str == '保存'){
            data = {
                id: this.form.id,
                fngks: this.form.fngks,
                fngr: this.form.fngr,
                fxxmc: this.form.fxxmc,
                ffblm: this.form.ffblm,
                flmnr: this.form.flmnr,
            }
            initBzFlow(data).then(res => {
              if(res.code == 200){
                this.$message.success(res.message)
                this.form = {
                  ...res.result.oaMap,
                  jobid: res.result.jobMap.id
                }
                // //console.log(this.form)
                this.form.id = res.result.oaMap.id//赋值
              } else {
                this.$message.warning(res.message)
              }
            })
          } else if(str == '提交') {
                data = {
                    jobid: this.form.jobid,
                    oaid: this.form.id,
                    map: {
                        fngks: this.form.fngks,
                        fngr: this.form.fngr,
                        fxxmc: this.form.fxxmc,
                        ffblm: this.form.ffblm,
                        flmnr: this.form.flmnr,
                    },
                    currentNode: "",
                    dbrid: "",
                    lcmbCode: "",
                    nextNode: "",
                    nextNodeId: "",
                    opinion: "",
                    smgflag: ""
                }
                this.loading = true
                submitFlow(data).then(res => {
                  if(res.code == 200){
                      this.$message.success(res.message)
                      this.closeVisible()
                  } else {
                      this.$message.warning(res.message)
                  }
                  this.loading = false
                })
            // if(this.form.jobid){
            //     data = {
            //         jobid: this.form.jobid,
            //         oaid: this.form.id,
            //         map: {
            //             fngks: this.form.fngks,
            //             fngr: this.form.fngr,
            //             fxxmc: this.form.fxxmc,
            //             ffblm: this.form.ffblm,
            //             flmnr: this.form.flmnr,
            //         },
            //         currentNode: "",
            //         dbrid: "",
            //         lcmbCode: "",
            //         nextNode: "",
            //         nextNodeId: "",
            //         opinion: "",
            //         smgflag: ""
            //     }
            //     submitFlow(data).then(res => {
            //     if(res.code == 200){
            //         this.$message.success(res.message)
            //         this.closeVisible()
            //     } else {
            //         this.$message.warning(res.message)
            //     }
            //     })
            // } else {
            //     let data1 = {
            //         oaid: this.form.id,
            //         fngks: this.form.fngks,
            //         fngr: this.form.fngr,
            //         fxxmc: this.form.fxxmc,
            //         ffblm: this.form.ffblm,
            //         flmnr: this.form.flmnr,
            //     }
            //     initBzFlow(data1).then(res => {
            //     if(res.code == 200){
            //         // this.$message.success(res.message)
            //         this.form = {
            //             ...res.result.oaMap,
            //             jobid: res.result.jobMap.id
            //         }
            //         let data2 = {
            //             jobid: this.form.jobid,
            //             oaid: this.form.id,
            //             map: {
            //                 fngks: this.form.fngks,
            //                 fngr: this.form.fngr,
            //                 fxxmc: this.form.fxxmc,
            //                 ffblm: this.form.ffblm,
            //                 flmnr: this.form.flmnr,
            //             },
            //             currentNode: "",
            //             dbrid: "",
            //             lcmbCode: "",
            //             nextNode: "",
            //             nextNodeId: "",
            //             opinion: "",
            //             smgflag: ""
            //         }
            //         submitFlow(data2).then(res => {
            //             if(res.code == 200){
            //                 this.$message.success(res.message)
            //                 this.closeVisible()
            //             } else {
            //                 this.$message.warning(res.message)
            //             }
            //         })
            //     } else {
            //         this.$message.warning(res.message)
            //     }
            //     })
            // }
          }
        } else {
          data = {
            id: this.form.id,
            fngks: this.form.fngks,
            fngr: this.form.fngr,
            fxxmc: this.form.fxxmc,
            ffblm: this.form.ffblm,
            flmnr: this.form.flmnr
          }
          if(str == '提交'){
            data = {
              ...data,
              fsffqlc: '是'
            }
            this.loading = true
          }
          initBzFlow(data).then(res => {
            if(res.code == 200){
              this.$message.success(res.message)
              if(str == '提交'){
                this.closeVisible()
              } else {
                this.form = {
                  ...res.result.oaMap,
                  jobid: res.result.jobMap.id
                }
                // //console.log(this.form)
                this.form.id = res.result.oaMap.id//赋值
              }

            } else {
              this.$message.warning(res.message)
            }
            this.loading = false
          })
        }
      } else {
        if(this.linkName == '科室审批'){
          data = {
            jobid: this.form.jobid,
            oaid: this.form.id,
            map: {
              fksfzr: this.form.fksfzr,
              fngksyj: this.form.fngksyj,
              fksfzrsj: this.form.fksfzrsj
            },
            opinion: this.form.fngksyj,
            currentNode: "",
            dbrid: "",
            lcmbCode: "",
            nextNode: "",
            nextNodeId: "",
            smgflag: ""
          }
        } else if(this.linkName == '办公室审批'){
          data = {
            jobid: this.form.jobid,
            oaid: this.form.id,
            map: {
              fbgsfzr: this.form.fbgsfzr,
              fbgsyj: this.form.fbgsyj,
              fbgsfzrsj: this.form.fbgsfzrsj
            },
            opinion: this.form.fbgsyj,
            currentNode: "",
            dbrid: "",
            lcmbCode: "",
            nextNode: "",
            nextNodeId: "",
            smgflag: ""
          }
        } else if(this.linkName == '中心分管领导审批'){
          data = {
            jobid: this.form.jobid,
            oaid: this.form.id,
            map: {
              fzxfgldr: this.form.fzxfgldr,
              fzxfgldspyj: this.form.fzxfgldspyj,
              fzxfgldrsj: this.form.fzxfgldrsj
            },
            opinion: this.form.fzxfgldspyj,
            currentNode: "",
            dbrid: "",
            lcmbCode: "",
            nextNode: "",
            nextNodeId: "",
            smgflag: ""
          }
        } else if(this.linkName == '中心主任审批'){
          data = {
            jobid: this.form.jobid,
            oaid: this.form.id,
            map: {
              fzxzrspr: this.form.fzxzrspr,
              fzxzrspsj: this.form.fzxzrspsj,
              fzxzrspyj: this.form.fzxzrspyj
            },
            opinion: this.form.fzxzrspyj,
            currentNode: "",
            dbrid: "",
            lcmbCode: "",
            nextNode: "",
            nextNodeId: "",
            smgflag: ""
          }
        } else if(this.linkName == '信息发布办理'){
          data = {
            jobid: this.form.jobid,
            oaid: this.form.id,
            map: {
              ffbrq: moment(this.form.ffbrq).format("YYYY+'年'+MM+'月'+DD+'日'"),
              fjbrqz: this.form.fjbrqz,
              fbz: this.form.fbz
            },
            opinion: '同意',
            currentNode: "",
            dbrid: "",
            lcmbCode: "",
            nextNode: "",
            nextNodeId: "",
            smgflag: ""
          }
        }

        if(str == '保存'){
          saveFlow(data).then(res => {
            if(res.code == 200){
              this.$message.success(res.message)
            } else {
              this.$message.warning(res.message)
            }
          })
        } else if(str == '提交') {
          submitFlow(data).then(res => {
            if(res.code == 200){
              this.$message.success(res.message)
              this.closeVisible()
            } else {
              this.$message.warning(res.message)
            }
          })
        }
      }
    },
    subTable(str){
        //console.log(this.form)
        this.$refs.ruleForm.validate(valid => {
            if(valid) {
                var that = this
                that.$confirm({
                    title: '您确定要提交吗?',
                    onOk() {
                        let data = {}
                        if(that.linkName == '申请'){
                            if(that.form.id){
                            if(str == '保存'){
                                data = {
                                    id: that.form.id,
                                    fngks: that.form.fngks,
                                    fngr: that.form.fngr,
                                    fxxmc: that.form.fxxmc,
                                    ffblm: that.form.ffblm,
                                    flmnr: that.form.flmnr,
                                }
                                initBzFlow(data).then(res => {
                                if(res.code == 200){
                                    that.$message.success(res.message)
                                    that.form = {
                                    ...res.result.oaMap,
                                    jobid: res.result.jobMap.id
                                    }
                                    // //console.log(that.form)
                                    that.form.id = res.result.oaMap.id//赋值
                                } else {
                                    that.$message.warning(res.message)
                                }
                                })
                            } else if(str == '提交') {
                                    data = {
                                        jobid: that.form.jobid,
                                        oaid: that.form.id,
                                        map: {
                                            fngks: that.form.fngks,
                                            fngr: that.form.fngr,
                                            fxxmc: that.form.fxxmc,
                                            ffblm: that.form.ffblm,
                                            flmnr: that.form.flmnr,
                                        },
                                        currentNode: "",
                                        dbrid: "",
                                        lcmbCode: "",
                                        nextNode: "",
                                        nextNodeId: "",
                                        opinion: "",
                                        smgflag: ""
                                    }
                                    that.loading = true
                                    submitFlow(data).then(res => {
                                    if(res.code == 200){
                                        that.$message.success(res.message)
                                        that.closeVisible()
                                    } else {
                                        that.$message.warning(res.message)
                                    }
                                    that.loading = false
                                    })
                                // if(that.form.jobid){
                                //     data = {
                                //         jobid: that.form.jobid,
                                //         oaid: that.form.id,
                                //         map: {
                                //             fngks: that.form.fngks,
                                //             fngr: that.form.fngr,
                                //             fxxmc: that.form.fxxmc,
                                //             ffblm: that.form.ffblm,
                                //             flmnr: that.form.flmnr,
                                //         },
                                //         currentNode: "",
                                //         dbrid: "",
                                //         lcmbCode: "",
                                //         nextNode: "",
                                //         nextNodeId: "",
                                //         opinion: "",
                                //         smgflag: ""
                                //     }
                                //     submitFlow(data).then(res => {
                                //     if(res.code == 200){
                                //         that.$message.success(res.message)
                                //         that.closeVisible()
                                //     } else {
                                //         that.$message.warning(res.message)
                                //     }
                                //     })
                                // } else {
                                //     let data1 = {
                                //         oaid: that.form.id,
                                //         fngks: that.form.fngks,
                                //         fngr: that.form.fngr,
                                //         fxxmc: that.form.fxxmc,
                                //         ffblm: that.form.ffblm,
                                //         flmnr: that.form.flmnr,
                                //     }
                                //     initBzFlow(data1).then(res => {
                                //     if(res.code == 200){
                                //         // that.$message.success(res.message)
                                //         that.form = {
                                //             ...res.result.oaMap,
                                //             jobid: res.result.jobMap.id
                                //         }
                                //         let data2 = {
                                //             jobid: that.form.jobid,
                                //             oaid: that.form.id,
                                //             map: {
                                //                 fngks: that.form.fngks,
                                //                 fngr: that.form.fngr,
                                //                 fxxmc: that.form.fxxmc,
                                //                 ffblm: that.form.ffblm,
                                //                 flmnr: that.form.flmnr,
                                //             },
                                //             currentNode: "",
                                //             dbrid: "",
                                //             lcmbCode: "",
                                //             nextNode: "",
                                //             nextNodeId: "",
                                //             opinion: "",
                                //             smgflag: ""
                                //         }
                                //         submitFlow(data2).then(res => {
                                //             if(res.code == 200){
                                //                 that.$message.success(res.message)
                                //                 that.closeVisible()
                                //             } else {
                                //                 that.$message.warning(res.message)
                                //             }
                                //         })
                                //     } else {
                                //         that.$message.warning(res.message)
                                //     }
                                //     })
                                // }
                            }
                            } else {
                            data = {
                                id: that.form.id,
                                fngks: that.form.fngks,
                                fngr: that.form.fngr,
                                fxxmc: that.form.fxxmc,
                                ffblm: that.form.ffblm,
                                flmnr: that.form.flmnr
                            }
                            if(str == '提交'){
                                data = {
                                ...data,
                                fsffqlc: '是'
                                }
                                that.loading = true
                            }
                            initBzFlow(data).then(res => {
                                if(res.code == 200){
                                that.$message.success(res.message)
                                if(str == '提交'){
                                    that.closeVisible()
                                } else {
                                    that.form = {
                                    ...res.result.oaMap,
                                    jobid: res.result.jobMap.id
                                    }
                                    // //console.log(that.form)
                                    that.form.id = res.result.oaMap.id//赋值
                                }

                                } else {
                                that.$message.warning(res.message)
                                }
                                that.loading = false
                            })
                            }
                        } else {
                            if(that.linkName == '科室审批'){
                            data = {
                                jobid: that.form.jobid,
                                oaid: that.form.id,
                                map: {
                                fksfzr: that.form.fksfzr,
                                fngksyj: that.form.fngksyj,
                                fksfzrsj: that.form.fksfzrsj
                                },
                                opinion: that.form.fngksyj,
                                currentNode: "",
                                dbrid: "",
                                lcmbCode: "",
                                nextNode: "",
                                nextNodeId: "",
                                smgflag: ""
                            }
                            } else if(that.linkName == '办公室审批'){
                            data = {
                                jobid: that.form.jobid,
                                oaid: that.form.id,
                                map: {
                                fbgsfzr: that.form.fbgsfzr,
                                fbgsyj: that.form.fbgsyj,
                                fbgsfzrsj: that.form.fbgsfzrsj
                                },
                                opinion: that.form.fbgsyj,
                                currentNode: "",
                                dbrid: "",
                                lcmbCode: "",
                                nextNode: "",
                                nextNodeId: "",
                                smgflag: ""
                            }
                            } else if(that.linkName == '中心分管领导审批'){
                            data = {
                                jobid: that.form.jobid,
                                oaid: that.form.id,
                                map: {
                                fzxfgldr: that.form.fzxfgldr,
                                fzxfgldspyj: that.form.fzxfgldspyj,
                                fzxfgldrsj: that.form.fzxfgldrsj
                                },
                                opinion: that.form.fzxfgldspyj,
                                currentNode: "",
                                dbrid: "",
                                lcmbCode: "",
                                nextNode: "",
                                nextNodeId: "",
                                smgflag: ""
                            }
                            } else if(that.linkName == '中心主任审批'){
                            data = {
                                jobid: that.form.jobid,
                                oaid: that.form.id,
                                map: {
                                fzxzrspr: that.form.fzxzrspr,
                                fzxzrspsj: that.form.fzxzrspsj,
                                fzxzrspyj: that.form.fzxzrspyj
                                },
                                opinion: that.form.fzxzrspyj,
                                currentNode: "",
                                dbrid: "",
                                lcmbCode: "",
                                nextNode: "",
                                nextNodeId: "",
                                smgflag: ""
                            }
                            } else if(that.linkName == '信息发布办理'){
                            data = {
                                jobid: that.form.jobid,
                                oaid: that.form.id,
                                map: {
                                ffbrq: moment(that.form.ffbrq).format("YYYY+'年'+MM+'月'+DD+'日'"),
                                fjbrqz: that.form.fjbrqz,
                                fbz: that.form.fbz
                                },
                                opinion: '同意',
                                currentNode: "",
                                dbrid: "",
                                lcmbCode: "",
                                nextNode: "",
                                nextNodeId: "",
                                smgflag: ""
                            }
                            }

                            if(str == '保存'){
                            saveFlow(data).then(res => {
                                if(res.code == 200){
                                that.$message.success(res.message)
                                } else {
                                that.$message.warning(res.message)
                                }
                            })
                            } else if(str == '提交') {
                            submitFlow(data).then(res => {
                                if(res.code == 200){
                                that.$message.success(res.message)
                                that.closeVisible()
                                } else {
                                that.$message.warning(res.message)
                                }
                            })
                            }
                        }
                    },
                    onCancel() {},
                });
            }
      });
    },
    // 跳过单位领导审批,直接发布
    jobTable(){
      let data = {}
      data = {
        jobid: this.form.jobid,
        oaid: this.form.id,
        map: {
          fzxfgldr: this.form.fzxfgldr,
          fzxfgldspyj: this.form.fzxfgldspyj,
          fzxfgldrsj: this.form.fzxfgldrsj,
        },
        opinion: this.form.fzxfgldspyj,
        nextNode: '信息发布办理',
        currentNode: "",
        dbrid: "",
        lcmbCode: "",
        nextNodeId: "",
        smgflag: ""
      }
      submitFlow(data).then(res => {
        if(res.code == 200){
          this.$message.success(res.message)
          this.closeVisible()
        } else {
          this.$message.warning(res.message)
        }
      })
    },
    // 编辑
    editForm(){
      let data = {
        fbgsfzr : this.form.fbgsfzr,
        fbgsfzrsj : this.form.fbgsfzrsj,
        fbgsyj : this.form.fbgsyj,
        fbz : this.form.fbz,
        ffblm : this.form.ffblm,
        ffbrq : this.form.ffbrq,
        fjbrqz : this.form.fjbrqz,
        fksfzr : this.form.fksfzr,
        fksfzrsj : this.form.fksfzrsj,
        // flczt : this.form.flczt,
        fngks : this.form.fngks,
        fngksyj : this.form.fngksyj,
        fngr : this.form.fngr,
        fsffqlc : this.form.fsffqlc,
        fsftgdwld : this.form.fsftgdwld,
        fuserid : this.form.fuserid,
        fxxmc : this.form.fxxmc,
        fzxfgldr : this.form.fzxfgldr,
        fzxfgldrsj : this.form.fzxfgldrsj,
        fzxfgldspyj : this.form.fzxfgldspyj,
        fzxzrspr : this.form.fzxzrspr,
        fzxzrspsj : this.form.fzxzrspsj,
        fzxzrspyj : this.form.fzxzrspyj,
        id : this.form.id,
        fdbrid: this.form.fdbrid,
        fdbr: this.form.fdbr
      }
      edit(data).then(res => {
        //console.log(res)
        if(res.code == 200){
          this.$message.success(res.message)
          // this.closeVisible()
        } else {
          this.$message.warning(res.message)
        }
      })
    },
    //
    checkMan(place,man){
      this.$nextTick(_ => {
        this.modaObj = {place: place,manList: man}
        this.$refs.personnelListRef.personnelListVisible = true
			})
    },
    // 选择人员
    checkPersonnel(place,id,name){
      this.$refs.personnelListRef.personnelListVisible = false
      //console.log('-------------------')
      // //console.log(place)
      // //console.log(id)
      // //console.log(name)
      const data = this.form
      data[place] = name.toString()
    //   data[fdbrid] = id.toString()
    //   data[fdbr] = name.toString()
    //   // //console.log(this.form)
    //   // //console.log(this.form.fksfzrqm)
    //   let Data = {
    //     jobid: this.form.jobid,
    //     fdbrid: id.toString(),
    //     fdbr: name.toString()
    //   }
      // zddbrFlows(Data).then(res => {
      //   //console.log(res)
      // })
    },
    // 退回
    getqueryAllYbJob(){
      queryAllYbJob({jobid:this.form.jobid}).then(res => {
        //console.log(res)
        this.returnList = res.result
      })
    },
    //
    returnChange(value){
      this.returmCheck = value
    },
    //
    returnBtn(){
      let data = {
        jobid: this.form.jobid,
        opinion: this.returnYj,
        shjid: this.returmCheck
      }
      returnUpperzdyFlowJob(data).then(res => {
        if(res.code == 200){
          this.$message.success(res.message)
          let jobid = this.form.jobid
          queryJobByJobId({jobid:jobid}).then(res => {
            //console.log(res)
            this.form = res.result.sqsx
          })
        } else {
          this.$message.warning(res.message)
        }
      })
    },
        // 退回意见确认
        returnClick(){
            this.$refs.ruleForm.validate(valid => {
                if (valid){
                    queryAllYbJob({jobid:this.form.jobid}).then(res => {
                        let list = res.result
                        list.forEach(item => {
                            if(item.fhjmc == '申请'){
                                this.returnFuntion(this.form.jobid,item.id)
                            }
                        })
                    })
                }
            })
        },
        returnFuntion(jobid,ids){
            let returnStr = ''
            if(this.linkName == '科室审批'){
                returnStr = this.form.fngksyj
            } else if(this.linkName == '办公室审批'){
                returnStr = this.form.fbgsyj
            } else if(this.linkName == '中心分管领导审批'){
                returnStr = this.form.fzxfgldspyj
            } else if(this.linkName == '中心主任审批'){
                returnStr = this.form.fzxzrspyj
            }
            let data = {
                jobid: jobid,
                opinion: returnStr,
                shjid: ids,
                smgflag: '',
                smsContent: '',
            }
            returnUpperzdyFlowJob(data).then(res => {
                if(res.code == 200){
                    this.$message.success(res.message)
                    this.closeVisible()
                } else {
                    this.$message.error(res.message)
                }
            })
        },
  },
//   updated() {
//     this.$nextTick(() => {
//       // //console.log(this.$refs.refjyInput)
//       if(this.linkName == '申请'){
//         // if(this.editorTextCopy == ''){
//         //   this.$refs.refjyLInput.focus()
//         // }
//         // if(this.form.ffblm == ''){
//         //   this.$refs.refjyLInput.focus()
//         // }
//       } else if(this.linkName == '科室审批'){
//         this.$refs.refjyInput.focus()
//       } else if(this.linkName == '办公室审批'){
//         this.$refs.refjyeInput.focus()
//       } else if(this.linkName == '中心分管领导审批'){
//         this.$refs.refjysInput.focus()
//       } else if(this.linkName == '中心主任审批'){
//         this.$refs.refjysiInput.focus()
//       }
//       this.reviewRecordsFocusEvent()
//     })
//   }
}
</script>
<style>
@import url('../../css/oaLess.css');
@import url('../../css/oaClass.css');
</style>
<style>
.ql-container {
    min-height: 300px !important;
    font-size: 16px !important;
}
img {
  width: 100%;
}
</style>
